#include <stdio.h>

int main()
{
    int n1, n2 ,n3, n4;
    scanf("%d %d %d %d", &n1, &n2, &n3, &n4);
    
    float A = (n1 + n3) / 2;   // 2A = (A-B)+(A+B);
    float B = (n3 - n1) / 2;    // 2B = (B-C)+(B+C);
    float C = (n4 - n2) / 2;    // 2C = ((B+C)-(B_C))
    if(A - (n1 + n3) / 2 == 0 && \
       B-(n3 - n1) / 2 == 0  &&  B-(n2 + n4) / 2 == 0 && \
       C - (n4 - n2) / 2 == 0 ){      //所有解必须满足条件
        printf("%d %d %d\n", (int)A, (int)B, (int)C);
    }
    else{
        printf("No");
    }
    return 0;
}